#pragma once
#include "ttf.h"

//#include <SDL_ttf.h>
#include <SDL.h>

#include <string.h>
#include <stdio.h>

/*
void ttf_init()
{
	if (TTF_Init() == -1)
	{
		printf("ttf error \n");
	}
}

SDL_Texture* RenderText(SDL_Renderer * renderer, const char * message, const char * fontFile, SDL_Color color, int fontSize)
{
	SDL_Surface * surf = NULL;
	SDL_Texture * texture = NULL;
	//Open the font
	TTF_Font *font = NULL;
	font = TTF_OpenFont(fontFile, fontSize);
	if (font == NULL)
	printf("ttf error %s\n",TTF_GetError());

	//Render the message to an SDL_Surface, as that's what TTF_RenderText_X returns
	surf = TTF_RenderText_Blended(font, message, color);
	texture = SDL_CreateTextureFromSurface(renderer, surf);
	//Clean up unneeded stuff
	SDL_FreeSurface(surf);
	TTF_CloseFont(font);
	
	return texture;
}

SDL_Texture * ttf_render(SDL_Renderer * r, const char * msg, SDL_Color color,int fontSize)
{
	return RenderText(r,msg, "CaviarDreams.ttf",color, fontSize);
}

void ttf_close()
{
	TTF_Quit();
}
*/